package com.tjut.oop.hol3;

public class Circle extends Shape {
	//新增属性：半径
  private double radius;
	@Override
	public void getArea() {
	System.out.println("圆的面积为"+3.14*radius*radius);

	}

	@Override
	public void getPer() {
		System.out.println("圆的周长为"+3.14*radius*2);

	}

	@Override
	public void showAll() {
		System.out.println("圆的半径为"+radius);
		System.out.println("圆的周长为"+3.14*radius*2);
		System.out.println("圆的面积为"+3.14*radius*radius);
		getcolor();
	}

	public Circle() {
		super();
		// TODO Auto-generated constructor stub
	}

	public Circle(double radius) {
		super();
		this.radius = radius;
	}

	public Circle(String color) {
		super(color);
		// TODO Auto-generated constructor stub
	}

}
